{extend name="user/index" /}

{block name="main"}
 <div class="content-page">
    <div class="content">
        <div class="row top-summary">
            <div class="col-md-12">
                <div> 绑定权限 </div>
                <span> 为角色绑定权限 </span>
                <form class="am-form tpl-form-line-form" action="{:url('admin/rolecontroller/setnode')}" method="post">
                    <input type="hidden" name="rid" value="{$id}">
                    <div class="am-form-group">
                        {volist name="name" key="k" id="v" }

                        <label><input name="nid[]" type="checkbox" value="{$v['id']}"

                        {volist name="data" key="ke" id="n"}
                        {$n['nid']==$v['id']?"checked":""}
                        {/volist}
                        /> {$v['name']}

                        </label>

                        {/volist}
                    </div>

                    <div class="am-form-group">
                        <button class="am-btn am-btn-primary  am-btn-block tpl-btn-bg-color-success  tpl-login-btn">提交
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}